-- GENERATED SPELL FOR [Ohgan] --


function spell0_14988(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(24317,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_14988', 20293, 1)
end

function spell1_14988(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_14988', 592, 1)
end

function Sorts_14988(pUnit, Event)
local choix_sorts_14988 = math.random(0, 1)
if choix_sorts_14988 == 0 then
pUnit:RegisterEvent('spell0_14988', 1, 1)
end
if choix_sorts_14988 == 1 then
pUnit:RegisterEvent('spell1_14988', 1, 1)
end
end

function mob14988_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14988', math.random(1500, 3000), 1)
end

function mob14988_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14988_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14988_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14988, 1, 'mob14988_Action')
RegisterUnitEvent(14988, 2, 'mob14988_Leave')
RegisterUnitEvent(14988, 3, 'mob14988_Kill')
RegisterUnitEvent(14988, 4, 'mob14988_Die')
